package com.zkl.push.model;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.zkl.common.web.app.base.BaseModel;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;

/**
 * <p>
 * 品牌商订阅消息数据表
 * </p>
 *
 * @author gongxz
 * @since 2020-01-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="WxopenSubscriptionMessageData对象", description="品牌商订阅消息数据表")
public class WxopenSubscriptionMessageData extends BaseModel<WxopenSubscriptionMessageData> {


	@TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "品牌商编码")
    private String corpCode;

    @ApiModelProperty(value = "订阅消息id")
    private String subscriptionMessageId;

    @ApiModelProperty(value = "模板类型")
    private String templateType;

    @ApiModelProperty(value = "模板id")
    private String templateId;

    @ApiModelProperty(value = "关键词id")
    private String keywordsKid;

    @ApiModelProperty(value = "关键词参数类型")
    private String keywordsRule;

    @ApiModelProperty(value = "1.开启2.关闭(这里的状态只标识用户是否启用消息模板，发送消息时还需要判断运营平台消息模板表状态)")
    private String flag;

    @ApiModelProperty(value = "创建时间")
    private Date createDate;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    private Date updateDate;

    @ApiModelProperty(value = "修改人")
    private String updateBy;


    public static final String ID = "id";

    public static final String CORP_CODE = "corp_code";

    public static final String SUBSCRIPTION_MESSAGE_ID = "subscription_message_id";

    public static final String TEMPLATE_TYPE = "template_type";

    public static final String TEMPLATE_ID = "template_id";

    public static final String KEYWORDS_KID = "keywords_kid";

    public static final String KEYWORDS_RULE = "keywords_rule";

    public static final String FLAG = "flag";

    public static final String CREATE_DATE = "create_date";

    public static final String CREATE_BY = "create_by";

    public static final String UPDATE_DATE = "update_date";

    public static final String UPDATE_BY = "update_by";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
